package com.clx.constants;

public class SystemConstants {
    // 文章状态-草稿
    public static final int ARTICLE_STATUS_DRAFT = 1;
    // 文章状态-正常
    public static final int ARTICLE_STATUS_NORMAL = 0;

    // 分页-起点
    public static final int DEFAULT_ARTICLE_CURRENT_PAGE = 1;
    // 分页-大小
    public static final int DEFAULT_ARTICLE_PAGE_SIZE = 10;

    // 组别状态-停用
    public static final int CATEGORY_STATUS_DEACTIVATE = 1;
    // 组别状态-正常
    public static final int CATEGORY_STATUS_NORMAL = 0;

    // 友链状态-未审核
    public static final int LINK_STATUS_UNAUDITED = 2;
    // 友链状态-未通过
    public static final int LINK_STATUS_FAILED = 1;
    // 友链状态-通过
    public static final int LINK_STATUS_NORMAL = 0;

    // 登录相关 Redis key 前缀
    public static final String LOGIN_KEY_PREV = "blog-login";

    // 默认根评论ID
    public static final int DEFAULT_COMMENT_ROOT_ID = -1;
    // 分页-起点
    public static final int DEFAULT_COMMENT_CURRENT_PAGE = 1;
    // 分页-大小
    public static final int DEFAULT_COMMENT_PAGE_SIZE = 10;

    public static final String ARTICLE_COMMENT_TYPE = "0";
    public static final String LINK_COMMENT_TYPE = "1";

    public static final String REDIS_BLOG_ARTICLE_VIEW_COUNT = "article:viewCount";
    public static final int REDIS_BLOG_ARTICLE_VIEW_COUNT_ADD_UNIT = 1;

}
